package com.lanyun.oss.config;

import com.lanyun.oss.interceptor.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;


/**
 * mvc的全局处理
 *
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/3/11
 */
@Configuration
public class GlobalConfig extends WebMvcConfigurationSupport {


    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginInterceptor())
                .addPathPatterns("/**");
    }

}
